package com.zsrt.java.day20161227.lh.homework.util;

import static org.junit.Assert.*;

import org.junit.Test;

public class ArrayUtilTest {
	
	@Test
	public void addTest(){
		String[] array=new String[0];
		String num="刘浩";
		String[] n=ArrayUtil.addArray(array, num);
		for (int i = 0; i < n.length; i++) {
			System.out.println(n[i]);
		}
		System.out.println(n.length);
	}
	@Test
	public void delTest(){
		String[] array=new String[1];
		String num="刘浩";
		String[] n=ArrayUtil.deleteArray(array, num);
		for (int i = 0; i < n.length; i++) {
			System.out.println(n[i]);
		}
	}
	
	@Test
	public void randomTest() throws Exception {
//		Random2.ranDom2();
		int i=1;
		while(i<100){
		System.out.println(Random2.ranDom2());
		i++;
		}
	}
	
	

}
